Skip to content

feat: integrate claude sessions and task segmentation#307

Open
Kyle-Verhoog wants to merge 1 commit intomasterfrom
kyle/claude-sessions
Open

feat: integrate claude sessions and task segmentation#307
Kyle-Verhoog wants to merge 1 commit intomasterfrom
kyle/claude-sessions

Conversation

@Kyle-Verhoog
Copy link
Member

Summary

  • Wire up claude_sessions.py (session scanner) and task_segmentation.py (LLM-based task analysis) into the agent app
  • SessionCache scans ~/.claude/projects/ JSONL files and injects session events into the LLMObs span pool, so they appear in the Sessions view without requiring instrumentation
  • Add dedicated /api/ui/llm-obs/v1/sessions endpoint for fast session listing
  • Add /api/ui/llm-obs/v1/session/{session_id}/tasks endpoint for AI-powered task segmentation
  • Session events include slug, cwd, project, num_turns, and end_ns for identification and sorting

Test plan

  • Import verification passes (from ddapm_test_agent.agent import make_app)
  • 235 existing tests pass (failures are pre-existing port conflicts)
  • Session scanning finds 151 sessions with correct metadata
  • Manual: ddapm-test-agent --port=8126 starts without errors
  • Manual: curl -X POST http://localhost:8126/api/ui/llm-obs/v1/sessions returns session events
  • Manual: Sessions appear in web UI Sessions view

Claude session: da262f78-56c2-4286-a66c-bae6343d71a2
Resume: claude --resume da262f78-56c2-4286-a66c-bae6343d71a2

🤖 Generated with Claude Code

Wire up SessionCache to scan ~/.claude/projects/ JSONL files and inject
session events into the LLMObs span pool. Add dedicated /sessions endpoint
and task segmentation API routes. Session events include slug, cwd, project,
num_turns, and end_ns for sorting by recency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant